.class final Lcom/a0soft/gphone/app2sd/main/ae;
.super Ljava/lang/Object;
.source "PrefWnd.java"

# interfaces
.implements Landroid/preference/Preference$OnPreferenceChangeListener;


# instance fields
.field final synthetic a:Lcom/a0soft/gphone/app2sd/main/PrefWnd;


# direct methods
.method constructor <init>(Lcom/a0soft/gphone/app2sd/main/PrefWnd;)V
    .locals 0
    .parameter

    .prologue
    .line 75
    iput-object p1, p0, Lcom/a0soft/gphone/app2sd/main/ae;->a:Lcom/a0soft/gphone/app2sd/main/PrefWnd;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final onPreferenceChange(Landroid/preference/Preference;Ljava/lang/Object;)Z
    .locals 6
    .parameter
    .parameter

    .prologue
    const/4 v5, 0x1

    .line 79
    check-cast p2, Ljava/lang/Boolean;

    invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    .line 81
    iget-object v1, p0, Lcom/a0soft/gphone/app2sd/main/ae;->a:Lcom/a0soft/gphone/app2sd/main/PrefWnd;

    invoke-virtual {v1}, Lcom/a0soft/gphone/app2sd/main/PrefWnd;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    .line 83
    new-instance v2, Landroid/content/ComponentName;

    iget-object v3, p0, Lcom/a0soft/gphone/app2sd/main/ae;->a:Lcom/a0soft/gphone/app2sd/main/PrefWnd;

    const-class v4, Lcom/a0soft/gphone/app2sd/main/PkgChangedRecv;

    invoke-direct {v2, v3, v4}, Landroid/content/ComponentName;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    if-eqz v0, :cond_0

    move v0, v5

    :goto_0
    invoke-virtual {v1, v2, v0, v5}, Landroid/content/pm/PackageManager;->setComponentEnabledSetting(Landroid/content/ComponentName;II)V

    .line 88
    return v5

    .line 83
    :cond_0
    const/4 v0, 0x2

    goto :goto_0
.end method
